package alan.springboot2x.swagger.knife4j.config;

import alan.springboot2x.swagger.knife4j.bean.Result;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class CustomerBlockHandler {

    public static Result handleException(BlockException exe){
        log.error("----->>>>>CustomerBlockHandler handleException exe:{} ",exe);
        return Result.setFail(exe.getMessage());
    }

}
